while True:
    word = input('Введите слово: ')
    if len(word)% 2 == 0 :
        x = int(len(word)/2)
        print(word[x-1:x+1])
    else :
        y = int(len(word)//2)
        print(word[y])
